package cn.devices.entity;

import java.time.LocalDate;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 编号生成表
 * </p>
 *
 * @author 秋水浮萍
 * @since 2021-02-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TbCodeGen implements Serializable {

    private static final long serialVersionUID = 1L;

    private String codeName;

    private Integer codeValue;

    private String codePrefix;

    private Integer valueLength;

    private Integer valueIncrement;

    private String detail;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date codeTm;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getCodeName() {
        return codeName;
    }

    public void setCodeName(String codeName) {
        this.codeName = codeName;
    }

    public Integer getCodeValue() {
        return codeValue;
    }

    public void setCodeValue(Integer codeValue) {
        this.codeValue = codeValue;
    }

    public String getCodePrefix() {
        return codePrefix;
    }

    public void setCodePrefix(String codePrefix) {
        this.codePrefix = codePrefix;
    }

    public Integer getValueLength() {
        return valueLength;
    }

    public void setValueLength(Integer valueLength) {
        this.valueLength = valueLength;
    }

    public Integer getValueIncrement() {
        return valueIncrement;
    }

    public void setValueIncrement(Integer valueIncrement) {
        this.valueIncrement = valueIncrement;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Date getCodeTm() {
        return codeTm;
    }

    public void setCodeTm(Date codeTm) {
        this.codeTm = codeTm;
    }
}
